package com.yj.lottery_system.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ActivityPrizeTiresEnum {
    FIRST_PRIZE(1,"一等奖"),
    SECOND_PRIZE(2,"二等奖"),
    THIRD_PRIZE(3,"三等奖");

    private final Integer code;
    private final String message;
    public static ActivityPrizeTiresEnum forName(String name) {
        for(ActivityPrizeTiresEnum activityPrizeTiresEnum : ActivityPrizeTiresEnum.values()) {
            if(activityPrizeTiresEnum.name().equalsIgnoreCase(name)) {
                return activityPrizeTiresEnum;
            }
        }
        return null;
    }
}
